package com.atguigu.visitor.demo3;

public class Client {

	public static void main(String[] args) {
		// 构建报表
		BusinessReport report = new BusinessReport();
		
		report.attach(new StaffForManager("经理-A"));
		report.attach(new StaffForEngineer("工程师-A"));
		report.attach(new StaffForEngineer("工程师-B"));
		report.attach(new StaffForEngineer("工程师-C"));
		report.attach(new StaffForManager("经理-B"));
		report.attach(new StaffForEngineer("工程师-D"));
		
		
		System.out.println("=========== CEO看报表 ===========");		
		report.showReport(new VisitorForCeo());
		
		System.out.println("=========== CTO看报表 ===========");
		report.showReport(new VisitorForCto());
	}
}
